<?php
/**
 *@作者:MissZhang
 *@邮箱:<787727147@qq.com>
 *@创建时间:2022/10/9 09:58
 *@说明:运费模板
 */
namespace app\common\model;


use think\Model;

class Shipping extends Model
{
    protected $pk = "id";
    // 定义时间戳字段名
    protected $createTime = 'add_time';
    //修改format类型
    protected $dateFormat = "Y-m-d H:i:s";
    public function getPkAttr() {
        return $this->pk;
    }
    public function shippingArea(){
        return $this->hasMany(ShippingArea::class, 'id','sid');
    }
}
